FROM adoptopenjdk/openjdk8:x86_64-debianslim-jdk8u372-b07-slim
LABEL maintainer="YangLong"
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y --no-install-recommends procps && apt-get clean
RUN mkdir /app
RUN mkdir -p /home/admin/logs
ADD pre-stop.sh /app/pre-stop.sh
ADD target/sentinel-dashboard.jar /app/app.jar
EXPOSE 8080
ENTRYPOINT ["sh","-c","java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app/app.jar"]